// 判断当前是否为淘宝搜索页
export const getTaobaoSearchTab = async () => {
  const pages = await chrome.tabs.query({})
  const target = pages.find((page) => {
    const isTaobao = page.url.includes("https://s.taobao.com/search")
    return (isTaobao && page.active) || isTaobao
  })
  return target
}
